package com.isnmp.nms.framework.discover;

import java.io.Serializable;
import java.util.List;
import java.util.Vector;

public class DeviceTypeInfo implements Serializable {
    private String deviceProductType = "";
    private String logicType = "";
    private List<String> typeOIDCharacter = new Vector();
    private List<String> typeDescCharacter = new Vector();
    public static final DeviceTypeInfo UnkownType = new DeviceTypeInfo();
    public static final DeviceTypeInfo SwitchType = new DeviceTypeInfo();
    public static final DeviceTypeInfo RouterType = new DeviceTypeInfo();
    public static final DeviceTypeInfo RouterSwitchType = new DeviceTypeInfo();
    public static final DeviceTypeInfo ComputerType = new DeviceTypeInfo();

    static {
        UnkownType.setDeviceProductType(Messages.getString("DeviceTypeInfo.2"));
        UnkownType.setLogicType(Messages.getString("DeviceTypeInfo.3"));
        SwitchType.setDeviceProductType(Messages.getString("DeviceTypeInfo.4"));
        SwitchType.setLogicType(Messages.getString("DeviceTypeInfo.5"));
        RouterType.setDeviceProductType(Messages.getString("DeviceTypeInfo.6"));
        RouterType.setLogicType(Messages.getString("DeviceTypeInfo.7"));
        RouterSwitchType.setDeviceProductType(Messages.getString("DeviceTypeInfo.8"));
        RouterSwitchType.setLogicType(Messages.getString("DeviceTypeInfo.9"));
        ComputerType.setDeviceProductType(Messages.getString("DeviceTypeInfo.10"));
        ComputerType.setLogicType(Messages.getString("DeviceTypeInfo.11"));
    }

    public String toString() {
        return this.deviceProductType;
    }

    public boolean equals(Object paramObject) {
        if ((paramObject instanceof DeviceTypeInfo)) {
            DeviceTypeInfo localDeviceTypeInfo = (DeviceTypeInfo) paramObject;
            if (getDeviceProductType().equals(localDeviceTypeInfo.getDeviceProductType()))
                return true;
        }
        return false;
    }

    public boolean equalsLogicType(Object paramObject) {
        if ((paramObject instanceof DeviceTypeInfo)) {
            DeviceTypeInfo localDeviceTypeInfo = (DeviceTypeInfo) paramObject;
            if (getLogicType().equalsIgnoreCase(localDeviceTypeInfo.getLogicType()))
                return true;
        }
        return false;
    }

    public int hashCode() {
        return this.deviceProductType.hashCode();
    }

    public void setDeviceProductType(String paramString) {
        this.deviceProductType = paramString;
    }

    public String getDeviceProductType() {
        return this.deviceProductType;
    }

    public void setLogicType(String paramString) {
        this.logicType = paramString;
    }

    public String getLogicType() {
        return this.logicType;
    }

    public void setTypeOIDCharacter(List<String> paramList) {
        this.typeOIDCharacter = paramList;
    }

    public List<String> getTypeOIDCharacter() {
        return this.typeOIDCharacter;
    }

    public void setTypeDescCharacter(List<String> paramList) {
        this.typeDescCharacter = paramList;
    }

    public List<String> getTypeDescCharacter() {
        return this.typeDescCharacter;
    }
}